package com.briup.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class ErrorController {

    // 处理404错误
    @RequestMapping("/error404")
    public String error404() {
        System.out.println("404错误");
        return "404.html";
    }

    // 处理500错误
    @RequestMapping("/error500")
    public String error500() {
        System.out.println("500错误");
        return "500.html";
    }
}
